package com.ruoyi.airspaceFlight.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 空域类型表
 * @TableName t_airspace_type
 * @author SUNLIANG
 * @date 2023/11/1
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value ="t_airspace_type")
public class TAirspaceType implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "air_type_id",type = IdType.ASSIGN_UUID)
    private String airTypeId;

    /**
     * 填充颜色
     */
    @TableField(value = "full_color")
    private String fullColor;

    /**
     * 线段颜色
     */
    @TableField(value = "line_color")
    private String lineColor;

    /**
     * 状态（0启用 1停用）
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 创建者
     */
    @TableField(value = "create_by")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新者
     */
    @TableField(value = "update_by")
    private String updateBy;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 空域类型名称
     */
    @TableField(value = "air_type_name")
    private String airTypeName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}